'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    /**
     * Add altering commands here.
     *
     * Example:
     * await queryInterface.createTable('users', { id: Sequelize.INTEGER });
     */
     const DataTypes = Sequelize;
    await queryInterface.createTable('product', {
        id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
        title: DataTypes.STRING(256),
        title: DataTypes.STRING(256),
        zindex: DataTypes.STRING(16),
        img_url:DataTypes.STRING(256),
        parentid:DataTypes.INTEGER
      });


  },

  down: async (queryInterface, Sequelize) => {
    /**
     * Add reverting commands here.
     *
     * Example:
     * await queryInterface.dropTable('users');
     */
  }
};
